class UserUnionDetailModel {
  String? createTime;
  CurrentUser? currentUser;
  int? id;
  String? logoUrl;
  String? unionName;
  UnionPresident? unionPresident;

  UserUnionDetailModel({
    this.createTime,
    this.currentUser,
    this.id,
    this.logoUrl,
    this.unionName,
    this.unionPresident,
  });

  UserUnionDetailModel.fromJson(Map<String, dynamic> json) {
    createTime = json["createTime"];
    currentUser =
        json["currentUser"] == null
            ? null
            : CurrentUser.fromJson(json["currentUser"]);
    id = json["id"];
    logoUrl = json["logoUrl"];
    unionName = json["unionName"];
    unionPresident =
        json["unionPresident"] == null
            ? null
            : UnionPresident.fromJson(json["unionPresident"]);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["createTime"] = createTime;
    if (currentUser != null) {
      _data["currentUser"] = currentUser?.toJson();
    }
    _data["id"] = id;
    _data["logoUrl"] = logoUrl;
    _data["unionName"] = unionName;
    if (unionPresident != null) {
      _data["unionPresident"] = unionPresident?.toJson();
    }
    return _data;
  }
}

class UnionPresident {
  String? avatarImg;
  String? createTime;
  String? mobile;
  String? nickName;
  int? showId;

  UnionPresident({
    this.avatarImg,
    this.createTime,
    this.mobile,
    this.nickName,
    this.showId,
  });

  UnionPresident.fromJson(Map<String, dynamic> json) {
    avatarImg = json["avatarImg"];
    createTime = json["createTime"];
    mobile = json["mobile"];
    nickName = json["nickName"];
    showId = json["showId"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["avatarImg"] = avatarImg;
    _data["createTime"] = createTime;
    _data["mobile"] = mobile;
    _data["nickName"] = nickName;
    _data["showId"] = showId;
    return _data;
  }
}

class CurrentUser {
  String? avatarImg;
  String? createTime;
  String? mobile;
  String? nickName;
  int? showId;

  CurrentUser({
    this.avatarImg,
    this.createTime,
    this.mobile,
    this.nickName,
    this.showId,
  });

  CurrentUser.fromJson(Map<String, dynamic> json) {
    avatarImg = json["avatarImg"];
    createTime = json["createTime"];
    mobile = json["mobile"];
    nickName = json["nickName"];
    showId = json["showId"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["avatarImg"] = avatarImg;
    _data["createTime"] = createTime;
    _data["mobile"] = mobile;
    _data["nickName"] = nickName;
    _data["showId"] = showId;
    return _data;
  }
}
